 <style>
     .ttl{width:70px;text-align:right;}
     .pop_cont_input{width:100%;}
     .pop_cont_input ul {width:100%;}
     .pop_cont_input ul li {height:35px;}
     .pop_cont_input{line-height:30px;}
     .pop_cont_input input{pading:0px 5px;}
     .pop_cont_input select{height:28px;}
     .pop_cont .pop_cont_input li{margin: 0px 0px;}
     .pop_cont .pop_cont_input li .textbox{border:1px #d2d2d2 solid; width:120px; display:inline-block;}

     .pop_cont {
         background: white;
         min-width: 300px;
         height: auto;
         overflow: hidden;
         position: absolute;
         top: 25%;
         left: 50%;
         margin-left: -25%;
         border-radius: 5px 5px 0 0;
     }
     .pop_cont .btm_btn {padding:0px 0px;}
     .blank{width:100%;height:10px;overflow:hidden;}
.bixuan{color:red;}
 </style>
 <!--引入JS-->
<script type="text/javascript" src="/static/admin/js/ajaxfileupload.js?t=1"></script>
 <link rel="stylesheet" type="text/css" href="/static/My97DatePicker/skin/WdatePicker.css" />
<script charset="utf-8" src="/static/My97DatePicker/WdatePicker.js"></script>
 <div class="pop_cont" style="width:50%;">
       <input type="hidden" value="<?php echo $id; ?>" id="editId" />
       <!--title-->
       <h3><?php echo $title;?><span class="falseBtn" style="color:red;float:right;font-size:18px;cursor:pointer;">X</span></h3>
       <!--content-->
        <form autocomplete="off" action="#" id="myform"></form>
       <div class="pop_cont_input">
           <ul>
               <li>
                   <span class="ttl"><font class="bixuan">*</font>分类名称</span>
                   <input type="text" name="e-name" id="e-name" value=""  placeholder="分类名称" class="textbox" style="padding: 0 5px;font-size: 12px;border: 1px #139667 solid;vertical-align: middle;width:120px;"  autocomplete="off" />
               </li>
           </ul>
           <!--bottom:operate->button-->
           <div class="btm_btn" style="height: 50px;">
               <input type="button" value="确认" class="input_btn trueBtn" /> <input
                   type="button" value="取消" class="input_btn falseBtn" />
           </div>
       </div>

     <div class="blank"></div>

      </div>

 <script>

     $(function(){
         $(".trueBtn").unbind().bind("click",function(){
             var that =this;
             var url="/admin/hosparticletype/addData";
             var name=$("#e-name").val();
             var pid=0;
             var sort = 0;
             if(name=="")
             {
                 ErrTiShi("请输入分类名称");return false;
             }

             var param={
                 name:name,
                 pid:pid,
                 sys_opt:'addData'//后台判断编辑操作
             };
             AjaxRequest(url,param,function(data){
                 if(data.err==0)
                 {
                     SuccessTiShi("操作成功");
                     $(".pop_bg").fadeOut();
                     $(".pop_bg").html('');
                     myResearch();
                 }
                 else
                 {
                     ErrTiShi(data.msg);
                 }
             });

         });
         //弹出：取消或关闭按钮
         $(".falseBtn").unbind().bind("click",function(){
             $(".pop_bg").fadeOut();
         });
         document.getElementById("myform").reset();
     });
 </script>